package com.example.ailiyuncloud.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.ailiyuncloud.dto.CommodityDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * @Author: lqj
 * @Date: 2024/05/23/14:40
 * @Description:
 */
@Repository
public interface CommodityMapper extends BaseMapper<CommodityDto> {

    IPage<CommodityDto> getCommodityList(Page<CommodityDto> page, CommodityDto commodityDto);

    Integer updateCommodityInventory(String commodityId, String inventoryNumber);

    String getCommodityId(String commodityId);
}
